package com.lagou.old;


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @author: jie.zhao
 * @create: 2021/01/29 23:19
 */
public class OperateDataBase {


    public void test() throws ClassNotFoundException, SQLException {
        Class.forName("com.mysql.cj.jdbc.Driver");

        Connection connection =
                DriverManager.getConnection("jdbc:mysql://localhost:3306/study", "danielyu", "123456");

        System.out.println(connection);
    }
}
